﻿
        $(function () {
            $.post("../BLL/City.ashx", { "action": "GetCityLists" }, function (data, status) {
                if (status == "success") {
                    var city = $.parseJSON(data);
                    //$("#city").empty();
                    for (var i = 0; i < city.length; i++) {
                        var value = city[i].SelfCode;
                        var name = city[i].Name;
                        var option = '<option value=' + value + '>' + name + '</option>';
                        $("#city").append(option);
                    }
                   // $("#city").val($("#HidCity").val());
                }

            });

            $("#city").change(function () {
                var citycode = $(this).val();
                $("#HidCity").val(citycode);


            });  
                    
        });
